<?php include "tools/permissionChecker.php";?>
<!DOCTYPE html>
<html>
<?php 
	include "tools/tools.php";
	checkSession();
?>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
  <link type="text/css" href="css/main.css" rel="stylesheet" />  
  <script type="text/javascript" src="inc/jquery.js"></script>
  <script type="text/javascript" src="inc/ui.core.js"></script>
  <script type="text/javascript" src="inc/ui.tabs.js"></script>
  <script type="text/javascript">
  $(document).ready(function(){
    $("#tabs").tabs();
  });
  </script>
</head>
<body style="font-size:62.5%;">
<div id="title">
	<?php
		//顯示title的部份
		$permission = $_SESSION['permission'];			
		switch($permission)
		{
			case "dept":
				include "inc/deptTitle.php";
				break;
			case "student":
				include "inc/studentTitle.php";
				break;
			case "admin":
				include "inc/adminTitle.php";
			default:
				break;
		} 
	?>	
</div>
<div id="tabs">
   <?php 
   		//顯示控制tab的部份
   		switch($permission)
		{
			case "dept":
				include "inc/deptTabInc.php";
				break;
			case "student":
				include "inc/studentTabInc.php";
				break;
			case "admin":
				include "inc/adminTabInc.php";
			default:
				break;
		}
   	?>
</div>
<div id="footer">
	系統發展組
</div>
</body>
</html>
